
	
/****** Object:  Stored Procedure [dbo].UsersInsert    Script Date: Thursday, March 18, 2010 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spUsersInsert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[spUsersInsert]
GO

			
	
	

/******************************************************************************
**		File: 
**		Name: [dbo].spUsersInsert
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 3/18/2010 5:03:21 PM
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE [dbo].spUsersInsert
	@Mobile nvarchar(20),
	@Password nvarchar(50),
	@Email nchar(120),
	@Ten nvarchar(25),
	@Ho nvarchar(50),
	@NgSinh smalldatetime,
	@Phai nvarchar(20),
	@DChi nvarchar(250),
	@NhanMail bit,
	@NhanSMS bit,
	@ThanhPho int,
	@Quan int,
	@NgonNgu int,
	@NguoiGioiThieu nvarchar(20),
	@MaSoCaNhan nvarchar(20)
AS

INSERT INTO [dbo].[Users] 
(
	[Mobile],
	[Password],
	[Email],
	[Ten],
	[Ho],
	[NgSinh],
	[Phai],
	[DChi],
	[NhanMail],
	[NhanSMS],
	[ThanhPho],
	[Quan],
	[NgonNgu],
	[NguoiGioiThieu],
	[MaSoCaNhan]
) 
VALUES 
(
	@Mobile,
	@Password,
	@Email,
	@Ten,
	@Ho,
	@NgSinh,
	@Phai,
	@DChi,
	@NhanMail,
	@NhanSMS,
	@ThanhPho,
	@Quan,
	@NgonNgu,
	@NguoiGioiThieu,
	@MaSoCaNhan
)


GO
	

